package code20_jdbc.改写学生管理.entity;

import java.io.Serializable;

/*
 * 班级类
 */
public class Clazz implements Serializable {
	private Integer cid;
	private String cname;
	private String room;

	public Clazz() {
		super();
	}

	public Clazz(Integer cid) {
		super();
		this.cid = cid;
	}

	public Clazz(Integer cid, String cname, String room) {
		super();
		this.cid = cid;
		this.cname = cname;
		this.room = room;
	}

	public Integer getCid() {
		return cid;
	}

	public void setCid(Integer cid) {
		this.cid = cid;
	}

	public String getCname() {
		return cname;
	}

	public void setCname(String cname) {
		this.cname = cname;
	}

	public String getRoom() {
		return room;
	}

	public void setRoom(String room) {
		this.room = room;
	}

	@Override
	public String toString() {
		return "Clazz [cid=" + cid + ", cname=" + cname + ", room=" + room
				+ "]\n";
	}

}
